#include<stdio.h>
#include<Windows.h>
#pragma warning(disable:4996)
void Reversestring(char *a, int n){
	char* start = a, *end = a + strlen(a) - 1;
	while (start <end){
		char 	temp = *start;
		*start = *end;
		*end = temp;
		start++;
		end--;
	}
}
int main(){
	char arr[] = "helloworld";
	char *a = arr;
	int num = sizeof(arr) / sizeof(arr[0]);
	printf("before:%s \n ", arr);
	Reversestring(arr, num);
	printf("after:%s\n ", arr);
	system("pause");
	return 0;
}
